<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Services\WechatArticleService;
use Illuminate\Http\Request;
use Illuminate\Support\Carbon;

class WechatArticleController extends Controller
{
    public function index(Request $request,WechatArticleService $wechatArticleService){
        $page = $request->page?$request->page:1;
        $page_size = 10;
        $status =  $wechatArticleService->getWechatArticle($page,$page_size);
        return response()->json($status)->setStatusCode(200);
    }
}
